import { EntityModel } from '@midwayjs/orm';
import { Column } from 'typeorm';
import {LoeeEntity} from '../../../comentity'

/**
 * 描述
 */
@EntityModel('classroom')
export class ClassroomEntity extends LoeeEntity {
  @Column({ comment: '教室名称' })
  name: string;

  @Column({ comment: '是否有电脑' })
  isPC: boolean;

  @Column({ comment: '是否有平板' })
  isiPad: boolean;

  @Column({ comment: '是否有电视' })
  isTV: boolean;

  @Column({ comment: '电脑数量' })
  pc_num: number;

  @Column({ comment: '平板数量' })
  iPad_num: number;

  @Column({ comment: '电视数量' })
  TV_num: number;

  @Column({ comment: '是否有中心桌' })
  is_center_table: boolean;

  @Column({ comment: '备注',length:1000,nullable:true })
  note: string;
}
